function reply(id, userImg, userName) {
   var content = document.getElementById(id).value;

   $.post('/mi/product/comments',{content:content,id:id},function(res){
      // console.log(res);
      let commentList = document.getElementsByClassName("commentList");
      // console.log(commentList)
      // console.log(commentList[1])
   // console.log(commentList[parseInt(id) - 1])
   // console.log(document.getElementById(id).innerHTML)
   // console.log(commentList[parseInt(id) - 1].innerHTML)
   // console.log(commentList[0].innerHtml)
         commentList[parseInt(id) - 1].innerHTML += "<div class=\"comments\">\n" +
             "                                                <img src=\""+userImg+"\" alt=\"\">\n" +
             "                                                <div class=\"c-right\">\n" +
             "                                                    <div class=\"c-t\">"+userName+"</div>\n" +
             "\n" +
             "                                                    <div class=\"c-b\">\n" +
             "                                                        <span>"+content+"</span>\n" +
             "                                                        <span class=\"point\" onclick=\"good("+res.data+",0, this)\">\n" +
             "                                                            <b class=\"dian iconfont\">&#xe61f;</b><span>0</span>" +
             "                                                        </span>\n" +
             "                                                    </div>\n" +
             "                                                </div>\n" +
             "                                            </div>"
   });
   // alert(content);
   // alert(id);
}
function good(id, likeNum, obj) {
   // alert(id)
   $.post('/mi/product/good',{id:id, likeNum:parseInt(likeNum) + 1},function(res){
   // alert(parseInt(likeNum) + 1)
      if(res.code == "200") {
         obj.children[1].innerText = parseInt(likeNum) + 1;
         obj.children[0].style.color = "#f67000";
      }
   });
   // console.log(obj.children[1])
}